package com.ruoyi.system.controller.es;

import com.ruoyi.system.controller.es.dto.EsSearch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: cyf
 * @Date:
 */
@Service
public class EsUnServiceImpl implements EsUnService {
    @Autowired
    private EsUnRepository articleRepository;

    @Override
    public EsSearch save(EsSearch esSearch) {
        return articleRepository.save(esSearch);
    }

    @Override
    public void delete(EsSearch esSearch) {
         articleRepository.delete(esSearch);
    }


}

